package com.work.work.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("t_project")
@Schema(description = "项目实体")
public class Project {
    @TableId(type = IdType.AUTO)
    @Schema(description = "项目ID")
    private Integer id;

    @Schema(description = "项目名称")
    private String projectName;

    @Schema(description = "开始时间")
    private LocalDateTime startTime;

    @Schema(description = "结束时间")
    private LocalDateTime endTime;

    @Schema(description = "项目描述")
    private String description;

    @Schema(description = "项目状态：1-未开始、2-进行中、3-已完成")
    private Integer status;

    @Schema(description = "团队ID")
    private Integer teamId;

    @Schema(description = "进度")
    private BigDecimal progress;
}